import java.util.Scanner;
public class Example3_5 {
    public static void main(String[] args){
        System.out.println("请输入五个成绩：");
        Scanner reader = new Scanner(System.in);
        int i,point;
        int sum = 0;
        for(i = 0;i <5;i++){
            point = reader.nextInt();
            if(point<0 ||point > 100){
                System.out.println("该成绩有误，不列入计算");
            }
            else {
                sum += point;
            }
        }
        System.out.println("成绩总和为"+sum);
    }
}
